<div class="modal-body no-p">
	<div class="row">
		<div class="col-xs-12">
			<section class="panel panel-primary no-b">
				<header class="panel-heading clearfix brtl brtr">
					<div class="overflow-hidden">
						<a href="javascript:;" class="h4 show no-m pt5">发货单详情</a>
					</div>
				</header>

				<div id="formPrinter">
					<div class="table-form">
						<div class="h2">
							发货单
						</div>
						<table>

							<tr>
								<td>订单编号</td>
								<td>{{delivery.order_no}}</td>
								<td>配送状态</td>
								<td>{{config.setup.deliveryStatus[delivery.status]}}</td>
								<td>创建时间</td>
								<td>{{delivery.create_time | datetime}}</td>

							</tr>
							<tr>

								<td>收货人</td>
								<td>{{delivery.accept_name}}</td>
								<td>收货地址</td>
								<td>{{delivery.country.name}}{{delivery.province.name}}{{delivery.city.name}}{{delivery.district.name}}{{delivery.address}}</td>
								<td>邮编</td>
								<td>{{delivery.zip}}</td>

							</tr>
							<tr>
								<td>订单备注</td>
								<td colspan="5">{{delivery.remark}}</td>
							</tr>
							{% if delivery.status == 1%}
							<tr>
								<td>物流公司</td>
								<td>{{delivery.express.name}}</td>
								<td>物流单号</td>
								<td>{{delivery.express_no}}</td>
								<td>发货时间</td>
								<td>{{delivery.delivery_time | datetime}}</td>
							</tr>
							
							
							{% endif %}
							<tr>
								
								<td>用户编号</td>
								<td colspan="2">{{delivery.user_id}}</td>
								<td>操作人</td>
								<td colspan="2">{{delivery.admin_id}}</td>
							</tr>
							
							

						</table>
						{% if delivery.goods.length > 0 %}
						<table>
							<tr>
								<td colspan="7" class="h5">发货清单</td>
							</tr>
							<tr>
								<td>货号</td>
								<td>图片</td>
								<td>名称</td>
								<td>规格</td>
								<td>售价</td>
								<td>数量</td>
								<td>合计</td>

							</tr>
							{% set totalPrice = 0%}
							
							{% for item in delivery.goods%}
							<tr>
								<td>{{item.goods_sn}}</td>
								<td><img src="{{item.list_pic_url}}" onclick="sublime.picture('{{item.list_pic_url}}')"/></td>
								<td>{{item.goods_name}}</td>
								<td>{{item.goods_specifition_name_value}}</td>
								<td>{{item.real_price}}</td>
								<td>{{item.number}}</td>
								<td>{{item.number*item.real_price}}</td>
								{% set totalPrice = totalPrice + item.number*item.real_price %}

							</tr>
							{% endfor %}
							<tr>
								
								<td colspan="3">商品总金额</td>
								<td colspan="4" style="text-align: right;">￥{{totalPrice}}</td>
								
							</tr>
						</table>
						{% endif %}
					</div>

				</div>

			</section>

		</div>
	</div>
</div>
<div class="modal-footer">
	<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
	<button type="button" class="btn  btn-primary" onclick="sublime.printer()">打印</button>
</div>